import request, { post } from '@/utils/request';

export interface ListParams {
  featureCode: string;
  callTimeStart: string;
  callTimeEnd: string;
  inputParams: string;
  xqdwCodes: string;
  classifyCodes: string;
  callSummaryCodes: string;
  dealSummaryCodes: string;
  size: number;
  page: number;
  //   seriesType: string;
}

export interface ListConcernParams {
  concernStatus: string;
  featureValue: string;
  featureCode: string;
}

//研判列表表头数据
export async function getParamQuery() {
  return post('/param/feature/query');
}

//研判表格数据（直串）
export async function getSeriesQuery(params: ListParams) {
  return post('/series/info/query', params);
}

//关注<=>取消关注
export async function getOperate(params: ListConcernParams) {
  return post('/series/concern/operate', params);
}

//报警时间
export async function getQueryTime(params: { module: string }) {
  return post('/server/queryTime', params);
}

// 研判表格数据（续串）
export async function querySeriesInfo(params: ListParams) {
  return post('/series/history/queryInfo', params);
}
